import ReactDOM from "react-dom/client";
import App from "./App";
import "virtual:uno.css";
import "@unocss/reset/normalize.css";
import "normalize.css";
// import "nprogress/nprogress.css";
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs"; // 兼容低版本浏览器
// 状态管理
import { Provider } from "react-redux";
import { store } from "./stores";
import "@/styles/reset.scss";

// svg 处理
import "virtual:svg-icons-register";
// 时间设为中文
import dayjs from "dayjs";
import "dayjs/locale/zh-cn";
dayjs.locale("zh-cn");

ReactDOM.createRoot(document.getElementById("root")!).render(
	// <React.StrictMode>
	<StyleProvider hashPriority="high" transformers={[legacyLogicalPropertiesTransformer]}>
		<Provider store={store}>
			<App />
		</Provider>
	</StyleProvider>
	// </React.StrictMode>
);
